package org.jeecg.modules.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 *
 * 燃烧总额
 *
 */
@Data
@TableName("biz_burn_amount")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "biz_burn_amount", description = "燃烧总额")
public class BurnAmount {
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    // 用户地址
    @ApiModelProperty(value = "用户地址")
    private String address;

    // 燃烧总额
    @ApiModelProperty(value = "燃烧总额")
    private Long amount;

    // 更新时间
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date updateTime;

    public BurnAmount() {

    }

    public BurnAmount(String address, Long amount, Date updateTime) {
        this.address = address;
        this.amount = amount;
        this.updateTime = updateTime;
    }
}
